package com.rk.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author :Rk.
 * @date : 2022/12/1
 */
@SpringBootApplication
@ComponentScan(basePackages ="com.rk")
@EnableDiscoveryClient
@EnableFeignClients(basePackages ="com.rk")
@MapperScan("com.rk.order.mapper")//会读取到comm中的MpConfig  扫描的是:com.rk.hsop.mapper 所以找不到对应的mapper，这里写了mapperscan 可以不写@mapper注解
public class ServiceOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceOrderApplication.class, args);
    }
}

